

#import <UIKit/UIKit.h>


typedef NS_ENUM(NSInteger, LLNaviViewType) {
    LLNaviViewTypeNormal,
    LLNaviViewTypeTitleButton,
    LLNaviViewTypeHaveLeftButton,
    LLNaviViewTypeSearchWithBackBtn,
};


@interface LLNaviView : UIView
@property (nonatomic, strong) UIImageView *bgView;
@property (copy, nonatomic) NSString *bgImg;
@property (strong, nonatomic) UIButton *cover;
@property (assign, nonatomic) BOOL haveCover;

@property (strong, nonatomic) UIButton *badgeBtn;
@property (copy, nonatomic) NSString *badgeNum;
@property (assign, nonatomic) BOOL haveBadgeInRightBar;

/// leftBtn
@property (strong, nonatomic) UIButton *leftButton;
@property (strong, nonatomic) UITextField *textField;
@property (copy, nonatomic) NSString *leftImg;
@property (copy, nonatomic) NSString *leftTitle;
@property (strong, nonatomic) UIColor *textFieldBgColor;

/// normal
@property (nonatomic, strong) UIButton *backBtn;
@property (nonatomic, copy) NSString *title;
@property (nonatomic, strong) UILabel *titleLabel;

///common
@property (nonatomic, copy) NSString *rightImage;
@property (nonatomic, copy) NSString *rightBarbtnNormalTitle;
@property (nonatomic, copy) NSString *rightBarbtnSelectedTitle;
@property (nonatomic, strong) LLButton *rightBarbutton;

/// navtitlebutton
@property (strong, nonatomic) UIButton *navTitleButton;
@property (copy, nonatomic) NSString *btnTilte;
@property (copy, nonatomic) NSString *btnImage;
@property (copy, nonatomic) NSString *btnSelectedImage;

@property (nonatomic, assign) LLNaviViewType type;

@property (nonatomic, copy) void (^didClickBackBtnBlock)(void);
@property (nonatomic, copy) void (^didClickRightBarBtnBlock)(BOOL selected);
@property (copy, nonatomic) void (^didClickCoverBlock)(void);
@property (copy, nonatomic) void (^didClickLeftButtonBlock)(void);

@end
